//
//  BDPaySuccessViewController.m
//  BeidouMall
//
//  Created by qie on 16/4/18.
//  Copyright © 2016年 qie. All rights reserved.
//

#import "BDPaySuccessViewController.h"
#import "BDNavigationController.h"
#import "BDOrderHomeViewController.h"

@interface BDPaySuccessViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *msgLabel;

@end

@implementation BDPaySuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([_type isEqualToString:@"success"]) {
        self.imageView.image = [UIImage imageNamed:@"paySuccess"];
        self.msgLabel.text = @"支付成功";
    } else {
        self.imageView.image = [UIImage imageNamed:@"payFail"];
        self.msgLabel.text = @"支付失败";
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)confirmButtonPressed:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
    [_myDelegate payFinishRefreshWebView];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
